package com.ruoyi.system.domain;

import java.math.BigDecimal;
import java.util.List;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 收料通知单对象 biz_receipt_note
 * 
 * @author ruoyi
 * @date 2025-10-27
 */
public class BizReceiptNote extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 收料通知单ID */
    private Long receiptNoteId;

    /** 收料通知单编号 */
    @Excel(name = "收料通知单编号")
    private String receiptNoteNo;

    /** 送货单ID */
    private Long deliveryNoteId;

    /** 送货单编号 */
    @Excel(name = "送货单编号")
    private String deliveryNoteNo;

    /** 采购订单编号 */
    @Excel(name = "采购订单编号")
    private String orderNo;

    /** 供货商编码 */
    @Excel(name = "供货商编码")
    private String supplierCode;

    /** 供货商名称 */
    @Excel(name = "供货商名称")
    private String supplierName;

    /** 收料日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "收料日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date receiptDate;

    /** 收料状态：CREATED-已创建, RECEIVED-已收货, INSPECTING-检验中, QUALITY_PASSED-检验合格, QUALITY_FAILED-检验不合格 */
    private String receiptStatus;

    /** 总箱数 */
    private Long totalBoxes;

    /** 总数量 */
    private BigDecimal totalQuantity;

    /** 收货人 */
    @Excel(name = "收货人")
    private String receiver;

    /** 收货完成时间 */
    private Date receivedTime;

    /** 质检员 */
    private String inspector;

    /** 质检时间 */
    private Date inspectionTime;

    /** 质检结果：PASS-合格, FAIL-不合格 */
    private String qualityResult;

    /** 创建人 */
    private String createdBy;

    /** 创建时间 */
    private Date createdTime;

    /** 更新人 */
    private String updatedBy;

    /** 更新时间 */
    private Date updatedTime;

    /** 删除标志（0存在 1删除） */
    private String delFlag;

    /** 收料通知单箱码明细信息 */
    private List<BizReceiptBarcode> bizReceiptBarcodeList;

    public void setReceiptNoteId(Long receiptNoteId) 
    {
        this.receiptNoteId = receiptNoteId;
    }

    public Long getReceiptNoteId() 
    {
        return receiptNoteId;
    }

    public void setReceiptNoteNo(String receiptNoteNo) 
    {
        this.receiptNoteNo = receiptNoteNo;
    }

    public String getReceiptNoteNo() 
    {
        return receiptNoteNo;
    }

    public void setDeliveryNoteId(Long deliveryNoteId) 
    {
        this.deliveryNoteId = deliveryNoteId;
    }

    public Long getDeliveryNoteId() 
    {
        return deliveryNoteId;
    }

    public void setDeliveryNoteNo(String deliveryNoteNo) 
    {
        this.deliveryNoteNo = deliveryNoteNo;
    }

    public String getDeliveryNoteNo() 
    {
        return deliveryNoteNo;
    }

    public void setOrderNo(String orderNo) 
    {
        this.orderNo = orderNo;
    }

    public String getOrderNo() 
    {
        return orderNo;
    }
    public void setSupplierCode(String supplierCode) 
    {
        this.supplierCode = supplierCode;
    }

    public String getSupplierCode() 
    {
        return supplierCode;
    }

    public void setSupplierName(String supplierName)
    {
        this.supplierName = supplierName;
    }

    public String getSupplierName()
    {
        return supplierName;
    }

    public void setReceiptDate(Date receiptDate) 
    {
        this.receiptDate = receiptDate;
    }

    public Date getReceiptDate() 
    {
        return receiptDate;
    }

    public void setReceiptStatus(String receiptStatus) 
    {
        this.receiptStatus = receiptStatus;
    }

    public String getReceiptStatus() 
    {
        return receiptStatus;
    }

    public void setTotalBoxes(Long totalBoxes) 
    {
        this.totalBoxes = totalBoxes;
    }

    public Long getTotalBoxes() 
    {
        return totalBoxes;
    }

    public void setTotalQuantity(BigDecimal totalQuantity) 
    {
        this.totalQuantity = totalQuantity;
    }

    public BigDecimal getTotalQuantity() 
    {
        return totalQuantity;
    }

    public void setReceiver(String receiver) 
    {
        this.receiver = receiver;
    }

    public String getReceiver() 
    {
        return receiver;
    }

    public void setReceivedTime(Date receivedTime) 
    {
        this.receivedTime = receivedTime;
    }

    public Date getReceivedTime() 
    {
        return receivedTime;
    }

    public void setInspector(String inspector) 
    {
        this.inspector = inspector;
    }

    public String getInspector() 
    {
        return inspector;
    }

    public void setInspectionTime(Date inspectionTime) 
    {
        this.inspectionTime = inspectionTime;
    }

    public Date getInspectionTime() 
    {
        return inspectionTime;
    }

    public void setQualityResult(String qualityResult) 
    {
        this.qualityResult = qualityResult;
    }

    public String getQualityResult() 
    {
        return qualityResult;
    }

    public void setCreatedBy(String createdBy) 
    {
        this.createdBy = createdBy;
    }

    public String getCreatedBy() 
    {
        return createdBy;
    }

    public void setCreatedTime(Date createdTime) 
    {
        this.createdTime = createdTime;
    }

    public Date getCreatedTime() 
    {
        return createdTime;
    }

    public void setUpdatedBy(String updatedBy) 
    {
        this.updatedBy = updatedBy;
    }

    public String getUpdatedBy() 
    {
        return updatedBy;
    }

    public void setUpdatedTime(Date updatedTime) 
    {
        this.updatedTime = updatedTime;
    }

    public Date getUpdatedTime() 
    {
        return updatedTime;
    }

    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    public List<BizReceiptBarcode> getBizReceiptBarcodeList()
    {
        return bizReceiptBarcodeList;
    }

    public void setBizReceiptBarcodeList(List<BizReceiptBarcode> bizReceiptBarcodeList)
    {
        this.bizReceiptBarcodeList = bizReceiptBarcodeList;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("receiptNoteId", getReceiptNoteId())
            .append("receiptNoteNo", getReceiptNoteNo())
            .append("deliveryNoteId", getDeliveryNoteId())
            .append("deliveryNoteNo", getDeliveryNoteNo())
            .append("orderNo", getOrderNo())
            .append("supplierCode", getSupplierCode())
            .append("supplierName", getSupplierName())
            .append("receiptDate", getReceiptDate())
            .append("receiptStatus", getReceiptStatus())
            .append("totalBoxes", getTotalBoxes())
            .append("totalQuantity", getTotalQuantity())
            .append("receiver", getReceiver())
            .append("receivedTime", getReceivedTime())
            .append("inspector", getInspector())
            .append("inspectionTime", getInspectionTime())
            .append("qualityResult", getQualityResult())
            .append("createdBy", getCreatedBy())
            .append("createdTime", getCreatedTime())
            .append("updatedBy", getUpdatedBy())
            .append("updatedTime", getUpdatedTime())
            .append("remark", getRemark())
            .append("delFlag", getDelFlag())
            .append("bizReceiptBarcodeList", getBizReceiptBarcodeList())
            .toString();
    }
}
